<%@ page language= "java" %>
<%@ page import = "beans.*" %> 
<%@page contentType="text/html; charset=UTF-8" %> 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />



<%
String lat = request.getParameter("lat");
String lng = request.getParameter("lng");
String zoom = request.getParameter("zoom");


String activity = request.getParameter("activity");
String city = request.getParameter("city");
String countryName = request.getParameter("countryName");

%>

<title>My Sport Pals</title>
<script src="js/prototype.js" type="text/javascript"></script>
<script src="js/scriptaculous.js" type="text/javascript"></script>
<script src="js/auto.js" type="text/javascript"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" src="js/ajax.js"></script>
<script type="text/javascript" src="js/map.js"></script>

<link href="css/map.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="css/auto.css">



<script type="text/javascript">
var lat = <%= lat%>;
var lng = <%= lng%>;
var zoom = <%= zoom%>;
</script>



<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-22732370-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>




</head>


<body onload="init()">


<h1>Where are your sport pals?</h1>



<form action="search.jsp" method="get">
<table>
<tr>
<div id="activ_buttons" align="right">
<td colspan="2" align="right">
<h3>
<img src="icons/cycling.png" /><input class="radio" type="radio" name="activity" value="Cycling" <% if(activity != null && activity.equalsIgnoreCase("Cycling")) out.print("checked"); %><% if(activity==null) out.print("checked"); %>>Cycling
<img src="icons/running.png" /><input class="radio" type="radio" name="activity" value="Running" <% if(activity != null && activity.equalsIgnoreCase("Running")) out.print("checked"); %>>Running
<img src="icons/walking.png" /><input class="radio" type="radio" name="activity" value="Walking" <% if(activity != null && activity.equalsIgnoreCase("Walking")) out.print("checked"); %>>Walking
</h3>
</td>
</div>
</tr>

<tr>

<td><h2>City:</h2></td>

<td>
<input type="text" name="state_input_city" id="state_input_city" size="20" value="<% if(city!=null) out.print(city); %>" />
<div id="suggestions_city"></div>
</td>

<td><h2>Country:</h2></td>

<td>
<input type="text" name="state_input_country" id="state_input_country" size="20" value="<% if(countryName!=null) out.print(countryName); %>" />
<div id="suggestions_country"></div>
</td>
</tr>

<tr><td colspan="4" align="center"><input type ="submit" id="button" value="search"></td></tr>
</table>

</form> 


<div id="map">
</div>

</body>

</html>